package com.shaozi.nc.data.model;

import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import com.shaozi.data.mongo.model.ModelBase;

/**
 * 通知记录数量
 * 
 * @author lyx
 */
@Document(collection = "nc_notice_record_num")
@CompoundIndex(name = "month_type_year_index", def = "{month :-1, type : 1,year:-1}")
public class NoticeRecordNumModel extends ModelBase {
	public static final int type_notice = 1;
	public static final int type_badge = 2;
	public static final int type_briefReport = 3;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String FIELDNAME_companyId = "companyId";
	private String companyId;
	public static final String FIELDNAME_year = "year";
	private Integer year;
	// 月份
	public static final String FIELDNAME_month = "month";
	private Integer month;
	public static final String FIELDNAME_num = "num";
	// 数量
	private Long num;
	// 类型 1==小秘书发送的条数 2=＝角标同步数据的条数
	public static final String FIELDNAME_type = "type";
	@Indexed
	private Integer type;
	public static final String FIELDNAME_createTime = "createTime";
	private long createTime;

	public static final String FIELDNAME_updateTime = "updateTime";
	private long updateTime;

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}

	public Long getNum() {
		return num;
	}

	public void setNum(Long num) {
		this.num = num;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}

}
